package com.panshi.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 搜索表
 * </p>
 *
 * @author xhlMr
 * @since 2020-08-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AppSearchT对象", description="搜索表")
public class AppSearchT implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "文章/问答ID")
    private Integer aqId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "标题")
    private String searchTitle;

    @ApiModelProperty(value = "简介")
    private String searchSynopsis;

    @ApiModelProperty(value = "分类")
    private Integer classifyId;

    @ApiModelProperty(value = "收藏数量")
    private Long collectCount;

    @ApiModelProperty(value = "阅读数量")
    private Long readCount;

    @ApiModelProperty(value = "评论/回答数量")
    private Long caCount;

    @ApiModelProperty(value = "评论/回答类型 c评论; a回答")
    private String caType;

    @ApiModelProperty(value = "咨询还是问答 1：咨询 2问答")
    private String state;

    @ApiModelProperty(value = "img_path 图片路径")
    private String imgPath;

    @ApiModelProperty(value = "分类表")
    private ClassifyT classifyT;

    @ApiModelProperty(value = "用户表")
    private AppUserT appUserT;
}
